<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<div class="pageContent">
	<form method="post" action="${base}/core/appcode/codesave.do" class="pageForm required-validate" onsubmit="return validateCallback(this, ${targetType}AjaxDone);">
	<!-- 来源页面，提交后刷新此页面 -->
	<input type="hidden" name="targetType" value="${targetType}">
	<input type="hidden" name="targetId" value="${targetId}">
	<c:if test="${entity.id!=null}">
	  <input type="hidden" name="id"  value="${entity.id}"/> 
	   <input type="hidden"  name="timestamp"  value="${entity.timestamp}"/> 
	   	 </c:if>
 	<input type="hidden" name="codeType.id" value="${entity.codeType.id}"/>
		<div class="pageFormContent" layoutH="56">
			<p>
				<label>代码：</label>
				<input name="code" type="text" size="20"  value="${entity.code}"/>
			</p>
			<p>
				<label>字符值：</label>
				<input name="stringValue" class="required" type="text" size="20" value="${entity.stringValue}"/>
			</p>
			
				<p>
				<label>是否可用：</label>
				<w:coderadio type="yesno" name="enable" value="${entity.enable}"></w:coderadio>
			</p>
	 
  
		</div>
		<div class="formBar">
			<ul>
				<!--<li><a class="buttonActive" href="javascript:;"><span>保存</span></a></li>-->
				<li><div class="buttonActive"><div class="buttonContent"><button type="submit">保存</button></div></div></li>
				<li>
					<div class="button"><div class="buttonContent"><button type="button" class="close">取消</button></div></div>
				</li>
			</ul>
		</div>
	</form>
</div>
